@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

set "CDir=%~dp0"
sc.exe create "FreeDreamService" start=auto binpath="%CDir%FreeDream.WebApi.exe"  

pause
